package com.jcl.recruit.wechat.service;

import com.jcl.recruit.wechat.logic.WechatPushLogic;
import com.jcl.recruit.wechat.utils.WechatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WechatPushService {

    @Autowired
    private WechatPushLogic wechatPushLogic;

    public int sendMessage(Integer userId) {
        return wechatPushLogic.pushRecommendMessage(userId, WechatUtils.getAccessToken());
    }

    public int sendMessage() {
        return wechatPushLogic.pushRecommendMessage(WechatUtils.getAccessToken());
    }

    public int resumeCountSendMessage(List<Map<String, String>> mapList) {

        return wechatPushLogic.pushRecommendMessage(mapList, WechatUtils.getAccessToken());
    }
}
